package com.datang.litejvm.constant;

import com.datang.litejvm.print.Visitor;

public class ConstantUTF8Info extends ConstantInfo {
    private int tag = ConstantInfo.CONSTANT_UTF8_INFO;
    private int length;
    private String bytes;
    private String value = "Utf8";
    public ConstantUTF8Info(ConstantPool pool) {
        super(pool);
    }

    public int getTag() {
        return tag;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getBytes() {
        return bytes;
    }

    public void setBytes(String bytes) {
        this.bytes = bytes;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public  void accept(Visitor visitor){
        visitor.visit(this);
    }
}
